<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item v-if="breadcrumb[0]" :to="{ path: breadcrumb[0].href }">
      <span style="cursor: pointer;">{{ breadcrumb[0].content }}</span>
    </el-breadcrumb-item>
    <!-- <el-breadcrumb-item v-if="breadcrumb[1]" :to="{ path: breadcrumb[1].href }">
      {{ breadcrumb[1].content }}
    </el-breadcrumb-item> -->
  </el-breadcrumb>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {},
  computed: {
    breadcrumb() {
      return JSON.parse(sessionStorage.getItem("menuActive")) || []
    }
  },
};
</script>

<style lang="less" scoped></style>
